*{margin:0; padding:0;}
/*占位符*/
.zw{
	width:100%;
	height:8%;	/*70px*/
}
header{
	display:flex;
	justify-content:space-between;
	align-items:center;
	position:fixed;
	top:0;
	z-index:3;
	width:100%;
	height:8%;	/*70px*/
	border:solid 1px #cacaca;
	box-sizing:border-box;
	background-color:#FFF;
}
header img{
	width:16%;
	height:97%;	/*68px*/
}
header nav{
	display:flex;
	justify-content:space-between;
	align-items:center;
	width:83%;
	height:97%;	/*68px*/
}
header nav a{
	width:20%;
	height:60px;	/*60px*/
	line-height:60px;
	color:#333;
	text-align:center;
	text-decoration:none; 
}
.topBox{
	width:83%;
	height:300px;
	margin:0 auto;
	margin-top:80px;
	border:1px solid #eee;
	box-shadow:3px 3px 5px #ccc;
	display:flex;
	justify-content:space-between;
}
.topBoxLeft{
	flex:2;
}
.bookImg{
	width:170px;
	height:220px;
	margin:0 auto;
	margin-top:10px;
	background:url(../images/book.jpeg) no-repeat center center;
	background-size:cover;
}

/*设置搜索框*/
.inputSs{
	width:80%;
	height:20px;
	margin:0 auto; 
	display:flex;
	justify-content:space-between;
	margin-top:10px;
	border-radius:10px;
	overflow:hidden;
	border:.5px solid #333;
}
.inputSs input{
	width:80%;
	border:none;
	outline:none;
}
.inputSs button{
	width:20%;
	border:none;
	outline:none;
	cursor:pointer;
}
.topBoxCenter{
	flex:2;
	padding-left:5px;
	border-left:.5px solid #ccc;
}
.topBoxCenter h2{
	display:block;
	border-bottom:.5px solid #ccc;
	margin-top:10px;
}
.topBoxCenter p{
	margin-top:10px;
}
.topBoxCenter a{
	color:#950c00;
	text-decoration:none;
}
.topBoxRight{
	flex:1;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
}
.topBoxRightDiv{
	width:150px;
	height:150px;
	background:url(../images/index.png) center center no-repeat;
	background-size:cover;
}
.buttomBox{
	width:83%;
	height:800px;
	margin:20px auto;
}
.buttomBox h3{
	display:block;
	border-bottom:1px solid #ccc;
	margin-bottom:10px;
}
.buttomBox p{
	text-indent:2em;
	margin-bottom:30px;
}
.content{
	width:100%;
	margin:0 auto;
}
.user{
	width:62%;
	height:auto;
	float:left;
}
.userT{
	width:100%;
	height:40px;
	border-bottom:1px solid #ccc;
	display:flex;
}
.userImg{
	display:inline-block;
	width:40px;
	height:40px;
}
.userImg img{
	width:100%;
	height:100%;
}
.userT span{
	display:inline-block;
	margin-left:2%;
}
.userB{
	width:100%;
	height:auto;
	padding:0 5px;
}
.userB p{
	margin-top:5%;
}
.books{
	width:35%;
	height:500px;
	float:right;
/*	background-color:greenyellow;*/
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	align-content:space-between;
}
.books div{
	width:45%;
	height:47%;
}
.books div img{
	width:100%;
	height:100%;
}
footer{
	display:flex;
	flex-direction:column;
	justify-content:space-around;
	align-items:center;
	width:100%;
	height:240px;
	margin-top:20px;
	color:#999;
	background-color:#333;
}
.footerTop{
	width:80%;
	height:40%;
	display:flex;
	justify-content:flex-start;	
	align-items:center;
}
.footerTop div{
	width:8%;
	height:50%;
	margin-right:4%;
	border-right:1px #999 solid;
	box-sizing:border-box;
	display:flex;
	flex-direction:column;
}
.footerTop a{
	color:#999;
	text-decoration:none;
}
.footerBottom{
	width:80%;
	height:40%;
	font-size:1.125em;
	display:flex;
	justify-content:space-between;
}

/*适配手机*/
@media all and (max-width:767px){
	.zw{
		width:100%;
		height:30px;
	}
	header{
		width:100%;
		height:30px;
	}
	header img{
		display:none;
	}
	header nav{
		width:1200px;
		height:28px;
	}
	header nav a{
		width:20%;
		height:28px;
		line-height:28px;
		font-size:12px;
		color:#333;
	}
	.topBox{
		height:300px;
		margin-top:10px;
	}
	.topBoxLeft{
		flex:1;
	}
	.bookImg{
		width:150px;
		height:240px;
		margin-top:20px;
	}
	.topBoxCenter{
		flex:1;
	}
	.topBoxCenter h2{
		font-size:1em;
	}
	.topBoxCenter p{
		font-size:.75em;
		margin-top:20px;
	}
	.topBoxRight{
		display:none;
	}
	.buttomBox{
		width:83%;
		height:600px;
		margin:20px auto;
	}
	.buttomBox h3{
		font-size:.875em;
	}
	.buttomBox p{
		text-indent:2em;
		margin-bottom:10px;
		font-size:.75em;
	}
	.userT{
		height:30px;
	}
	.userImg{
		width:30px;
		height:30px;
	}
	.userT span{
		font-size:.75em;
	}
	.books{
		width:35%;
		height:300px;
	}
	.books div{
		width:45%;
		height:120px;
	}
	footer{
		height:80px;
		margin-top:40px;
	}
	.footerTop{
		width:80%;
		height:40%;
	}
	.footerTop div{
		width:50%;
		border:none;
	}
	.footerTop a{
		font-size:.625em;
	}
	.footerBottom{
		font-size:8px;
	}
}

/*适配ipad*/
@media all and (min-width:768px) and (max-width:990px){
	.zw{
		width:100%;
		height:30px;
	}
	header{
		width:100%;
		height:30px;
	}
	header img{
		display:none;
	}
	header nav{
		width:1200px;
		height:28px;
	}
	header nav a{
		width:20%;
		height:28px;
		line-height:28px;
		font-size:12px;
	}
	.topBox{
		height:300px;
		margin-top:10px;
	}
	.topBoxLeft{
		/*flex:1;*/
	}
	.bookImg{
		width:150px;
		height:200px;
		margin-top:30px;
	}
	.inputSs{
		width:80%;
		height:20px;
	}
	.inputSs input{
		width:70%;
	}
	.inputSs button{
		width:30%;
		font-size:.75em
	}
	.topBoxCenter{
		/*flex:3;*/
	}
	.topBoxRight{
		/*flex:1;*/
	}
	.buttomBox{
		height:700px;
	}
	.books{
		height:400px;
	}
	footer{
		height:120px;
		margin-top:100px;
	}
	.footerTop div{
		width:10%;
		height:50%;
		margin-right:5%;
	}
	.footerTop a{
		font-size:.75em;
	}
	.footerBottom{
		font-size:.875em;
	}
}

/*设置显示器*/
@media all and (min-width:991px) and (max-width:1119px){
	.zw{
		width:100%;
		height:50px;
	}
	header{
		width:100%;
		height:50px;
	}
	header img{
		width:10%;
		height:48px;
	}
	header nav{
		width:90%;
		height:48px;
	}
	header nav a{
		width:20%;
		height:40px;
		line-height:40px;
	}
	.topBox{
		height:300px;
		margin-top:10px;
	}
	.topBoxLeft{
		/*flex:1;*/
	}
	.bookImg{
		width:150px;
		height:200px;
		margin-top:20px;
	}
	.topBoxCenter{
		/*flex:3;*/
	}
	.topBoxRight{
		/*flex:1;*/
	}
	footer{
		height:180px;
	}
	.footerTop a{
		font-size:.875em;
	}
	.footerBottom{
		font-size:.875em;
	}
}